const mongoose = require('mongoose')

mongoose.connect('mongodb://localhost:27017/uploader')

mongoose.connection.on('error', err => console.log(err))
mongoose.connection.once('open', () => console.log('mongodb connected.'))

require('./image')
require('./comment')